package com.task.core.mapper;

import java.util.List;

import com.task.core.vo.resp.CountryDetailRespVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import com.task.common.domain.info.KeyAndValue;
import com.task.common.domain.info.CountryInfo;
import com.task.core.dto.request.CountryRequestDTO;

/**
 * @author 迪迦.
 * @date 2024/8/14 15:09
 */
@Mapper
public interface CountryMapper {

  void addCountry(CountryRequestDTO request);

  List<CountryInfo> getCountryByPage(CountryRequestDTO request);

  CountryInfo getCountry(@Param("countryName") String countryName, @Param("countryCode") String countryCode);

  Integer deleteCountry(@Param("countryCode") String countryCode, @Param("operationBy") Long operationBy);

  Integer modifyCountry(CountryRequestDTO request);

  List<KeyAndValue> getCountryForOption(CountryRequestDTO request);

    CountryDetailRespVo getCountryDetail(CountryRequestDTO countryRequestDTO);
}
